/**
 * 
 */
package group.anglers.bpmn.general.errors;

import group.anglers.bpmn.general.enums.ErrorCode;

/**
 * @author an.pham
 *
 */
public class WorkflowException extends Exception {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1038715081003830589L;
	
	private ErrorCode errorCode;

	public WorkflowException(String message, ErrorCode errorCode) {
		super(message);
		this.errorCode = errorCode;
	}

	public ErrorCode getErrorCode() {
		return errorCode;
	}

}
